using System;
using System.Linq;
using System.Text;
using System.Transactions;
using System.Collections.Generic;
using EF.Commons.Background.Entity;
namespace Common.Background.Data
{

    /// <summary>
    /// 
    /// </summary>
    public class WebManageRole_WebManageMenusRepository : BackgroundRepositoryBase, IWebManageRole_WebManageMenusRepository
    {

        #region IWebManageRole_WebManageMenusRepository 成员
        public void DeleteByRoleID(int roleID)
        {
            base._db.Database.ExecuteSqlCommand("delete from WebManageRole_WebManageMenus where manageroleid=" + roleID);
        }

        public void Insert(WebManageRole_WebManageMenus entity)
        {
            base.Insert<WebManageRole_WebManageMenus>(entity);
        }

        public void Insert(List<WebManageRole_WebManageMenus> list)
        {
            base.Insert<WebManageRole_WebManageMenus>(list);
        }

        #endregion


        #region IWebDepartmentsRepository 成员

        public IQueryable<WebManageRole_WebManageMenus> GetModel()
        {
            return GetEntities<WebManageRole_WebManageMenus>();
        }

        public WebManageRole_WebManageMenus Find(params object[] valueKeys)
        {
            return GetEntity<WebManageRole_WebManageMenus>(valueKeys);
        }

        #endregion

    }
}
